package com.ruoyi.market.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 价格对象 price
 * 
 * @author ruoyi
 */
public class Price extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 价格ID */
    @Excel(name = "价格ID", cellType = Excel.ColumnType.NUMERIC)
    private Long priceId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private String shopId;

    /** 规格单位Id */
    @Excel(name = "规格单位Id", cellType = Excel.ColumnType.NUMERIC)
    private Long unitId;

    /** 项目ID */
    @Excel(name = "服务项目ID", cellType = Excel.ColumnType.NUMERIC)
    private Long projectId;

    /** 等级ID */
    @Excel(name = "店员等级ID", cellType = Excel.ColumnType.NUMERIC)
    private Long levelId;

    /** 单价 */
    @Excel(name = "单价", cellType = Excel.ColumnType.NUMERIC)
    private BigDecimal amount;

    /** 订单类型 0-指定店员 1-盲盒下单 2-体验单 */
    private String orderType;

    /** 启用状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 排序 */
    @Excel(name = "排序", cellType = Excel.ColumnType.NUMERIC)
    private Long priceSort;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    /** 所属项目信息   */
    private Project projectInfo;

    /** 所属等级信息   */
    private Level levelInfo;

    /** 所属单位信息   */
    private Unit unitInfo;

    public Price()
    {

    }

    public Price(Long priceId)
    {
        this.priceId = priceId;
    }

    public Long getPriceId()
    {
        return priceId;
    }

    public void setPriceId(Long priceId)
    {
        this.priceId = priceId;
    }

    public String getShopId(){ return shopId; }

    public void setShopId(String shopId){ this.shopId = shopId; }

    public Long getProjectId()
    {
        return projectId;
    }

    public void setProjectId(Long projectId)
    {
        this.projectId = projectId;
    }

    public Long getLevelId()
    {
        return levelId;
    }

    public void setLevelId(Long levelId)
    {
        this.levelId = levelId;
    }

    public Long getUnitId()
    {
        return unitId;
    }

    public void setUnitId(Long unitId)
    {
        this.unitId = unitId;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getOrderType()
    {
        return orderType;
    }

    public void setOrderType(String orderType)
    {
        this.orderType = orderType;
    }

    public Long getPriceSort(){ return priceSort;}

    public void setPriceSort(Long priceSort){ this.priceSort = priceSort; }

    public BigDecimal getAmount(){ return amount;}

    public void setAmount(BigDecimal amount){ this.amount = amount; }

    public String getDelFlag()
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    public Project getProjectInfo()
    {
        return projectInfo;
    }

    public void setProjectInfo(Project projectInfo)
    {
        this.projectInfo = projectInfo;
    }

    public Level getLevelInfo()
    {
        return levelInfo;
    }

    public void setLevelInfo(Level levelInfo)
    {
        this.levelInfo = levelInfo;
    }

    public Unit getUnitInfo()
    {
        return unitInfo;
    }

    public void setUnitInfo(Unit unitInfo)
    {
        this.unitInfo = unitInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("priceId", getPriceId())
            .append("shopId", getShopId())
            .append("levelId", getLevelId())
            .append("unitId", getUnitId())
            .append("projectId", getProjectId())
            .append("status", getStatus())
            .append("orderType", getOrderType())
            .append("amount", getAmount())
            .append("priceSort", getPriceSort())
            .append("shopInfo", getShopInfo())
            .append("projectInfo", getProjectInfo())
            .append("levelInfo", getLevelInfo())
            .append("unitInfo", getUnitInfo())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
